﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ExtensionsLib.Dictionary;

namespace Tests.DictionaryExtensions
{
    [TestClass]
    public class AddTest1
    {
        class SomeType { }

        [TestMethod]
        public void TestMethod1()
        {
            var someObject = new SomeType();
            var items = new Dictionary<long, Dictionary<int, SomeType>>();
            items.Add(12345, 123, someObject);

            Assert.AreEqual(1, items.Count);
            Assert.AreEqual(1, items[12345].Count);
            Assert.AreEqual(someObject, items[12345][123]);
        }
    }
}


